package com.neuedu.charge.cost.controller;

import com.neuedu.charge.base.response.Result;
import com.neuedu.charge.cost.service.CostService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cost")
@Slf4j
public class CostController {
    @Autowired
    private CostService costService;

    @GetMapping("/get/costs")
    public Result getCosts() {
        return Result.success(costService.getCostList());
    }
}
